﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserAdd.aspx.cs" Inherits="User_UserAdd" %>

<%@ Register Src="../UserControl/MenuControl.ascx" TagName="menu" TagPrefix="UC" %>
<%@ Register Src="../UserControl/Top.ascx" TagName="top" TagPrefix="UC" %>
<%@ Register Src="../UserControl/foot.ascx" TagName="footer" TagPrefix="UC" %>
<%@ Import Namespace="BLL.Common" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>会员用户添加</title>
    <link type="text/css" href="../Styles/Style.css" rel="stylesheet" />
    <script type="text/javascript" src="../Scripts/jquery-1.4.1.min.js"></script>
    <link type="text/css" href="../Scripts/UIModule/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
    <script type="text/javascript" src="../Scripts/UIModule/jquery-ui-1.8.16.custom.min.js"></script>
    <script type="text/javascript" src="../Scripts/Check.js"></script>
    <script type="text/javascript">
        $().ready(function () {
            myDataHelper("txt_birthday", "1970-1-1");
        });

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="page" id="pall">
        <input runat="server" type="hidden" id="hid_input" />
        <input runat="server" type="hidden" id="userPassPortId" />
        <input runat="server" type="hidden" id="updateflg" />
        <!--right top-->
        <UC:top ID="top" runat="server"></UC:top>
        <UC:menu ID="menu" runat="server"></UC:menu>
        <div class="page_right" id="pright">
            <div class="right_top">
                <div class="ltitle">
                    <ul class="right_top_down">
                        <li class="dtitle"><span class="iconE"></span><font><b>您当前的位置:</b> 首页>>用户编辑</font>
                        </li>
                    </ul>
                </div>
            </div>
            <!--right middle-->
            <div class="right_middle" style="overflow: hidden;">
                <div class="right_pannel">
                    <div class="right_box">
                        <div class="box_title">
                            <b>
                                <%--<%=SocialSpace.BLL.Global.Language.LanguageHelper.GetLabel("User.ProfileText", AuthHelper.CurrentLanguage)%>--%>
                                填写用户基本资料 </b>
                        </div>
                        <%--<div id="div_UserRegister">--%>
                        <table class="usertb">
                            <tr>
                                <td class="lctext">
                                    <%--<%=SocialSpace.BLL.Global.Language.LanguageHelper.GetLabel("User.TypeText", AuthHelper.CurrentLanguage)%>--%>
                                    <font color="red">* </font>用户类型
                                </td>
                                <td>
                                    <asp:DropDownList ID="DDL_userType" runat="server">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td class="lctext">
                                    <%--<%=SocialSpace.BLL.Global.Language.LanguageHelper.GetLabel("User.UsernameText", AuthHelper.CurrentLanguage)%>--%>
                                    <font color="red">* </font>登陆用户名
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txt_userName" class="inputtext" Width="200px" MaxLength="16"
                                        onblur="checkUserName(this);" onfocus="clearUserError(this);"></asp:TextBox>
                                    &nbsp;
                                    <div class="reg_column reg_column_01">
                                        <span id="userNameReError" style="display: none;"><span class="error">
                                            <img src="../images/regerror.gif" /></span> <span class="errortxt">用户名已注册，请重新输入
                                            </span></span><span id="userNameError" style="display: none;"><span class="error">
                                                <img src="../images/regerror.gif" /></span> <span class="errortxt">用户名输入不合法(合法用户名：6-16位包含字母、数字、下划线)
                                                </span></span>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="lctext">
                                    <%--<%=SocialSpace.BLL.Global.Language.LanguageHelper.GetLabel("User.OriginalPasswordText", AuthHelper.CurrentLanguage)%>--%>
                                    <font color="red">* </font>密码
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txt_password" class="inputtext" Width="200px" ValidationGroup="txt"
                                        TextMode="Password" MaxLength="16" onblur="checkPassword(this);" onkeyup="checkPasswordStrength(this);"
                                        onfocus="clearError(this);"></asp:TextBox>
                                    &nbsp;
                                    <div class="reg_column reg_column_01">
                                        <%-- <span class="errortxt" id="passWeek" style="display: none">弱 </span><span class="errortxt"
                                            id="passMed" style="display: none">中 </span><span class="errortxt" id="passStr" style="display: none">
                                                强 </span>--%>
                                        <span id="passWordError" style="display: none"><span class="error">
                                            <img src="../images/regerror.gif" /></span> <span class="errortxt">密码输入不合法(密码设置：6-16位非空字符)
                                            </span></span>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="lctext">
                                    <%--<%=SocialSpace.BLL.Global.Language.LanguageHelper.GetLabel("User.RePasswordText", AuthHelper.CurrentLanguage)%>--%>
                                    <font color="red">* </font>确认密码
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txt_repPassword" class="inputtext" Width="200px"
                                        MaxLength="16" TextMode="Password" onblur="checkRePassword(this);"></asp:TextBox>
                                    &nbsp;
                                    <div class="reg_column reg_column_01">
                                        <span id="passWordReError" style="display: none"><span class="error">
                                            <img src="../images/regerror.gif" /></span> <span class="errortxt">两次密码输入不一致 </span>
                                        </span>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="lctext">
                                    <%--<%=SocialSpace.BLL.Global.Language.LanguageHelper.GetLabel("User.OtherProfile4", AuthHelper.CurrentLanguage)%>--%>
                                    <font color="red">* </font>真实姓名
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txt_reanName" class="inputtext" Width="200px" onblur="checkRealName(this);"
                                        onfocus="clearRealError(this);"></asp:TextBox>
                                    <div class="reg_column reg_column_01">
                                        <span id="reanNameError" style="display: none"><span class="error">
                                            <img src="../images/regerror.gif" /></span> <span class="errortxt">真实姓名必须输入 </span>
                                        </span>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="lctext">
                                    <%--<%=SocialSpace.BLL.Global.Language.LanguageHelper.GetLabel("User.RealNameText", AuthHelper.CurrentLanguage)%>--%>
                                    昵称
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txt_nickName" class="inputtext" Width="200px" ValidationGroup="txt"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="lctext" style="height: 26px">
                                    <%--<%=SocialSpace.BLL.Global.Language.LanguageHelper.GetLabel("User.BirthdayText", AuthHelper.CurrentLanguage)%>--%>
                                    <font color="red">* </font>身份证号
                                </td>
                                <td style="height: 26px">
                                    <asp:TextBox runat="server" ID="txt_IdNum" class="inputtext" Width="200px" Style="ime-mode: disabled"
                                        onkeypress="noInput(event)" MaxLength="18" onfocus="clearIdNumError(this);"></asp:TextBox>
                                    <div class="reg_column reg_column_01">
                                        <span id="IdNumErr" style="display: none"><span class="error">
                                            <img src="../images/regerror.gif" /></span> <span class="errortxt">有效证件号码不能为空 </span>
                                        </span>
                                    </div>
                                </td>
                            </tr>
                            <%--电子邮件地址--%>
                            <tr>
                                <td class="lctext">
                                    <font color="red">* </font>邮箱
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txt_email" class="inputtext" Width="200px" ValidationGroup="txt"
                                        MaxLength="64" onblur="checkMail(this);" onfocus="clearEmailError(this);"></asp:TextBox>
                                    &nbsp;
                                    <div class="reg_column reg_column_01">
                                        <span id="emailReNameError" style="display: none"><span class="error">
                                            <img src="../images/regerror.gif" /></span> <span class="errortxt">此邮箱已被注册 </span>
                                        </span><span id="emailFormatError" style="display: none"><span class="error">
                                            <img src="../images/regerror.gif" /></span> <span class="errortxt">邮箱格式不正确 </span>
                                        </span><span id="emailNullError" style="display: none"><span class="error">
                                            <img src="../images/regerror.gif" /></span> <span class="errortxt">邮箱不能为空 </span>
                                        </span>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="lctext">
                                    <%--<%=SocialSpace.BLL.Global.Language.LanguageHelper.GetLabel("User.MobileText", AuthHelper.CurrentLanguage)%>--%>
                                    <font color="red">* </font>手机号
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txt_PhoneNumber" class="inputtext" Width="200px"
                                        ValidationGroup="txt" MaxLength="64" onblur="checkPhone(this);" onfocus="clearPhoneError(this);"></asp:TextBox>
                                    &nbsp;
                                    <div class="reg_column reg_column_01">
                                        <span id="PhoneNumberError" style="display: none"><span class="error">
                                            <img src="../images/regerror.gif" /></span> <span class="errortxt">请输入正确的移动电话 </span>
                                        </span><span id="PhoneNumberNullError" style="display: none"><span class="error">
                                            <img src="../images/regerror.gif" /></span> <span class="errortxt">移动电话不能为空 </span>
                                        </span><span id="PhoneNumberExist" style="display: none"><span class="error">
                                            <img src="../images/regerror.gif" /></span> <span class="errortxt">手机号已注册过，请重新输入！
                                            </span></span>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="lctext" style="height: 22px">
                                    <%--<%=SocialSpace.BLL.Global.Language.LanguageHelper.GetLabel("User.GenderText", AuthHelper.CurrentLanguage)%>--%>
                                    性别
                                </td>
                                <td style="height: 22px">
                                    <asp:RadioButton ID="rb_man" runat="server" Text="男" GroupName="sex" Checked="true" />
                                    &nbsp; &nbsp;
                                    <asp:RadioButton ID="rb_woman" runat="server" Text="女" GroupName="sex" />
                                </td>
                            </tr>
                            <tr>
                                <td class="lctext" style="height: 26px">
                                    出生年月日
                                </td>
                                <td style="height: 26px">
                                    <asp:TextBox runat="server" ID="txt_birthday" class="inputtext" Width="200px" Style="ime-mode: disabled"
                                        onkeypress="noInput(event)"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="lctext">
                                    最高学历
                                </td>
                                <td>
                                    <asp:DropDownList ID="DDL_Education" runat="server">
                                        <asp:ListItem Value="-1">-----------------</asp:ListItem>
                                        <asp:ListItem Value="1">小学或以下</asp:ListItem>
                                        <asp:ListItem Value="2">初中</asp:ListItem>
                                        <asp:ListItem Value="3">高中/职业高中</asp:ListItem>
                                        <asp:ListItem Value="4">中专/技校</asp:ListItem>
                                        <asp:ListItem Value="5">大专/大学非本科</asp:ListItem>
                                        <asp:ListItem Value="6">大学本科/学士</asp:ListItem>
                                        <asp:ListItem Value="7">研究生/硕士</asp:ListItem>
                                        <asp:ListItem Value="8">博士及以上</asp:ListItem>
                                    </asp:DropDownList>
                                    <%--   <select id="sel_Education" runat="server">
                                        <option value="-1" selected="selected">-----------------</option>
                                        <option value="1">小学或以下</option>
                                        <option value="2">初中</option>
                                        <option value="3">高中/职业高中</option>
                                        <option value="4">中专/技校</option>
                                        <option value="5">大专/大学非本科</option>
                                        <option value="6">大学本科/学士</option>
                                        <option value="7">研究生/硕士</option>
                                        <option value="8">博士及以上</option>
                                    </select>--%>
                                </td>
                            </tr>
                            <%-- <tr>
                            <td class="lctext">
                                手机操作系统
                            </td>
                            <td>
                                <select id="sel_OS" runat="server">
                                    <option value="-1" selected="selected">----------------</option>
                                    <option value="1">塞班</option>
                                    <option value="2">安卓</option>
                                    <option value="3">Windows Mobile</option>
                                    <option value="4">苹果iOS</option>
                                    <option value="5">不是智能手机</option>
                                    <option value="9">不关心/不知道</option>
                                </select>
                            </td>
                        </tr>--%>
                            <tr>
                                <td class="lctext">
                                    <%--<%=SocialSpace.BLL.Global.Language.LanguageHelper.GetLabel("User.NationalityText", AuthHelper.CurrentLanguage)%>--%>
                                    所在城市
                                </td>
                                <td>
                                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                        <ContentTemplate>
                                            <asp:DropDownList ID="DDL_province" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DDL_province_SelectedIndexChanged">
                                            </asp:DropDownList>
                                            <input type="hidden" id="txt_province" runat="server" />
                                            <%--<%=SocialSpace.BLL.Global.Language.LanguageHelper.GetLabel("User.CityText", AuthHelper.CurrentLanguage)%>--%>
                                            <asp:DropDownList ID="DDL_city" runat="server">
                                            </asp:DropDownList>
                                            <input type="hidden" id="txt_city" runat="server" />
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>
                            <tr>
                                <td class="lctext" style="height: 65px">
                                    <%--<%=SocialSpace.BLL.Global.Language.LanguageHelper.GetLabel("User.AddressText", AuthHelper.CurrentLanguage)%>--%>
                                    地址
                                </td>
                                <td style="height: 65px">
                                    <asp:TextBox runat="server" ID="txt_address" class="inputtext" Width="367px" Height="65px"
                                        Rows="10" TextMode="MultiLine"></asp:TextBox>
                                </td>
                            </tr>
                            <%-- <tr style="">
                            <td class="lctext">
                                
                                选择头像
                            </td>
                            <td>
                                <div style="border: solid 1px #cccccc; width: 59px; left; 0px; margin-left: 2px;">
                                    <img id="selectImage" src="" title="选择头像" alt="选择头像" style="cursor: pointer;" onclick="bindImage()" />
                                </div>
                                <div id="images" style="display: none;">
                                    <div>
                                    </div>
                                </div>
                            </td>
                        </tr>--%>
                            <tr>
                                <td class="lctext">
                                    <%--<%=SocialSpace.BLL.Global.Language.LanguageHelper.GetLabel("User.PersonalIncomeText", AuthHelper.CurrentLanguage)%>--%>
                                    个人收入
                                </td>
                                <td>
                                    <%--<asp:textbox runat="server" id="txt_personIncome" class="inputtext" width="200px"></asp:textbox>--%>
                                    <%--     <select id="sel_PersonalIncome" runat="server">
                                        <option value="-1" selected="selected">-----------------------------------</option>
                                        <option value="1">人民币 1000 元以下</option>
                                        <option value="2">人民币 1000-3000 元</option>
                                        <option value="3">人民币 3000-5000 元</option>
                                        <option value="4">人民币 5000-8000 元</option>
                                        <option value="5">人民币 8000-10000 元</option>
                                        <option value="6">人民币 10000-20000 元</option>
                                        <option value="7">人民币20000-50000元</option>
                                        <option value="8">人民币50000元以上</option>
                                    </select>--%>
                                    <asp:DropDownList ID="DDL_PersonalIncome" runat="server">
                                        <asp:ListItem Value="-1" Selected="selected">-----------------------------------</asp:ListItem>
                                        <asp:ListItem Value="1">人民币 1000 元以下</asp:ListItem>
                                        <asp:ListItem Value="2">人民币 1000-3000 元</asp:ListItem>
                                        <asp:ListItem Value="3">人民币 3000-5000 元</asp:ListItem>
                                        <asp:ListItem Value="4">人民币 5000-8000 元</asp:ListItem>
                                        <asp:ListItem Value="5">人民币 8000-10000 元</asp:ListItem>
                                        <asp:ListItem Value="6">人民币 10000-20000 元</asp:ListItem>
                                        <asp:ListItem Value="7">人民币20000-50000元</asp:ListItem>
                                        <asp:ListItem Value="8">人民币50000元以上</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td class="lctext">
                                    <%--<%=SocialSpace.BLL.Global.Language.LanguageHelper.GetLabel("User.FamilyIncomeText", AuthHelper.CurrentLanguage)%>--%>
                                    家庭收入
                                </td>
                                <td>
                                    <%--<asp:textbox runat="server" id="txt_familyIncome" class="inputtext" width="200px"></asp:textbox>--%>
                                    <%--       <select id="sel_FamilyIncome" runat="server">
                                        <option value="-1" selected="selected">----------------------------------</option>
                                        <option value="1">人民币 1000 元以下</option>
                                        <option value="2">人民币 1000-3000 元</option>
                                        <option value="3">人民币 3000-5000 元</option>
                                        <option value="4">人民币 5000-8000 元</option>
                                        <option value="5">人民币 8000-10000 元</option>
                                        <option value="6">人民币 10000-20000 元</option>
                                        <option value="7">人民币20000-50000元</option>
                                        <option value="8">人民币50000元以上</option>
                                    </select>
                                    --%>
                                    <asp:DropDownList ID="DDL_FamilyIncome" runat="server">
                                        <asp:ListItem Value="-1" Selected="selected">-----------------------------------</asp:ListItem>
                                        <asp:ListItem Value="1">人民币 1000 元以下</asp:ListItem>
                                        <asp:ListItem Value="2">人民币 1000-3000 元</asp:ListItem>
                                        <asp:ListItem Value="3">人民币 3000-5000 元</asp:ListItem>
                                        <asp:ListItem Value="4">人民币 5000-8000 元</asp:ListItem>
                                        <asp:ListItem Value="5">人民币 8000-10000 元</asp:ListItem>
                                        <asp:ListItem Value="6">人民币 10000-20000 元</asp:ListItem>
                                        <asp:ListItem Value="7">人民币20000-50000元</asp:ListItem>
                                        <asp:ListItem Value="8">人民币50000元以上</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td class="lctext">
                                </td>
                                <td align="left">
                                    <input type="reset" value="重置" class='btnStyle2' />
                                    <asp:Button ID="Btn_OK" runat="server" Text="提交" class='btnStyle2' OnClientClick="return checkAll();"
                                        OnClick="Btn_OK_Click" />
                                    <asp:Button ID="UpdateButton" runat="server" Text="更新" class='btnStyle2' OnClientClick="return checkAll();"
                                        OnClick="UpdateButton_Click" Visible="true" />
                                    <%--<input type="button" value="重置" class='btnStyle2' onclick="resetting()" />--%>
                                </td>
                            </tr>
                        </table>
                        <%--</div>--%>
                    </div>
                </div>
            </div>
            <!--right down-->
            <div class="right_down">
            </div>
        </div>
    </div>
    </form>
</body>
<UC:footer ID="footer" runat="server" />
